package com.qiaofang.applet.service.member.repository;

import com.qiaofang.applet.service.member.domain.MemberSubscribe;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author daiyuxiang
 */
@Repository
public interface MemberSubscribeRepository extends MongoRepository<MemberSubscribe, String> {

    MemberSubscribe findFirstByMemberIdAndEstateUniqueUuidAndDeletedAndCorporationCode(String memberId, String estateUniqueUuid, Boolean deleted, String corporationCode);

    List<MemberSubscribe> findAllByCorporationCodeAndIsMessageAndDeleted(String corporationCode, int isMessage, Boolean deleted);


}
